package com.espirit.eap.manager;

import com.espirit.eap.annotation.ModelDisplayProperty;

@ModelDisplayProperty(value="code")
public enum CompletedFlag {
	All(2),Close(1),Open(0);
	int value;
	private CompletedFlag(int value){
		this.value = value;
	}
	public int toInt(){
		return value;
	}
	public CompletedFlag fromInt(int value){
		switch(value){
		case 0: return Open;
		case 1: return Close;
		case -1: return All;
		default: return Open;
		}
	}
}
